clc,clear
load("corner_degree.mat")
tp = find(type==1);
x_turn = zeros(1,length(tp));
for n=1:length(tp)
    x_turn(1,n) = DDD(tp(n));
end

flag = 1;%两圈44.2就为1，单圈22.1为0

turn_sign = zeros(1,44200);
l = 6;%急弯总长
for n =1:length(tp)
    for j=1:l
    turn_sign(1,x_turn(n)-l./2+j) = 1;
    if(flag==1)
    turn_sign(1,22100+(x_turn(n)-l./2+j)) = 1;
    end
    end
end
find(turn_sign==1)